package com.mk.web.io.file.threadpool;

import java.util.concurrent.atomic.AtomicLong;

import com.mk.web.io.file.client.nio.NioClient;

/**
 * Created by WangChen on 2018/12/17 14:41.
 */
public class Task implements Runnable{

    NioClient nioClient = new NioClient();
//    private final LongAdder count = new LongAdder();
    private final AtomicLong count = new AtomicLong(0L);
    @Override
    public void run() {
        System.out.println("running_" + count.getAndIncrement());
        nioClient.send();

    }
}
